﻿using AnyTap.Services;
using CommunityToolkit.Maui;
using Serilog;
namespace AnyTap;

public static class MauiProgram
{
	public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		builder
			.UseMauiApp<App>()
			.UseMauiCommunityToolkit();

		Log.Logger = new LoggerConfiguration().MinimumLevel.Verbose().WriteTo.File(Helper.DIR_LOG + DateTime.Now.ToString("yyyy-MM") + ".log").CreateLogger();
		return builder.Build();
	}
}
